package ruifeng.zcj.dig.ui.forget;

import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.OnClick;
import ruifeng.zcj.dig.R;
import ruifeng.zcj.dig.ui.base.GetCodeActivity;

/**
 * Created by Administrator on 2016/9/19 0019.
 */
public class FindPwdActivity extends GetCodeActivity {
    @Bind(R.id.activity_top_left)
    ImageView mActivityTopLeft;
    @Bind(R.id.activity_top_center)
    TextView mActivityTopCenter;
    @Bind(R.id.activity_top_right)
    ImageView mActivityTopRight;
    @Bind(R.id.activity_top_right_text)
    TextView mActivityTopRightText;

    @Bind(R.id.forget_pwd_et_validate_code)
    EditText mForgetPwdEtValidateCode;

    @Bind(R.id.forget_pwd_et_newpwd)
    EditText mForgetPwdEtNewpwd;
    @Bind(R.id.forget_pwd_btn)
    TextView mForgetPwdBtn;

    @Override
    public int getLayoutId() {
        return R.layout.activity_forget_pwd;
    }

    @Override
    public void initView() {
        mActivityTopCenter.setText("忘记密码");
        this.time = new TimeCount(120000, 1000);// 构造CountDownTimer对象，为获取验o证码时间段

    }


    @OnClick({R.id.activity_top_left, R.id.forget_pwd_btn, R.id.register_btn_get_code})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.activity_top_left:// 点击关闭
                finish();
                break;
            case R.id.register_btn_get_code:
                getValidateCode();// 获取验证码
                break;

            case R.id.forget_pwd_btn:// 确定
               // btnGetCode.setText("点击了");
                showSnackBar("请稍后...");
                break;
        }
    }

    @Override
    public String codeType() {
        return "2";
    }




}
